//
//  GameCacheManager.cpp
//  GameDemo
//
//  Created by leo on 14/12/5.
//
//

#include "GameCacheManager.h"
USING_NS_CC;

GameCacheManager::~GameCacheManager()
{
}
GameCacheManager* GameCacheManager::instance()
{
    static GameCacheManager inst;
    return &inst;
}

GameCacheManager::GameCacheManager()
{
    
}
bool GameCacheManager::init()
{
	CCSpriteFrameCache::sharedSpriteFrameCache()->addSpriteFrame(CCSpriteFrame::create("bg1.png", CCRectMake(0, 0, 640, 960)), "bg1.png");
	CCSpriteFrameCache::sharedSpriteFrameCache()->addSpriteFrame(CCSpriteFrame::create("DrDog1.png", CCRectMake(0, 0, 99, 115)), "DrDog1.png");
	CCSpriteFrameCache::sharedSpriteFrameCache()->addSpriteFrame(CCSpriteFrame::create("DrDog2.png", CCRectMake(0, 0, 99, 115)), "DrDog1.png");
	CCSpriteFrameCache::sharedSpriteFrameCache()->addSpriteFrame(CCSpriteFrame::create("DrDogZD.png", CCRectMake(0, 0, 21, 62)), "DrDogZD.png");
	CCSpriteFrameCache::sharedSpriteFrameCache()->addSpriteFrame(CCSpriteFrame::create("YuGuZD.png", CCRectMake(0, 0, 21, 52)), "YuGuZD.png");
	CCSpriteFrameCache::sharedSpriteFrameCache()->addSpriteFrame(CCSpriteFrame::create("gra_planeImg0.png", CCRectMake(0, 0, 60, 85)), "gra_planeImg0.png");
	CCSpriteFrameCache::sharedSpriteFrameCache()->addSpriteFrame(CCSpriteFrame::create("gra_planeImg1.png", CCRectMake(0, 0, 60, 85)), "gra_planeImg1.png");
	CCSpriteFrameCache::sharedSpriteFrameCache()->addSpriteFrame(CCSpriteFrame::create("gra_planeImg2.png", CCRectMake(0, 0, 60, 85)), "gra_planeImg2.png");
	CCSpriteFrameCache::sharedSpriteFrameCache()->addSpriteFrame(CCSpriteFrame::create("bomb19.png", CCRectMake(0, 0, 34, 94)), "bomb19.png");
	CCSpriteFrameCache::sharedSpriteFrameCache()->addSpriteFrame(CCSpriteFrame::create("bomb23.png", CCRectMake(0, 0, 34, 94)), "bomb23.png");
	CCSpriteFrameCache::sharedSpriteFrameCache()->addSpriteFrame(CCSpriteFrame::create("bomb24.png", CCRectMake(0, 0, 34, 94)), "bomb24.png");
	CCSpriteFrameCache::sharedSpriteFrameCache()->addSpriteFrame(CCSpriteFrame::create("enemy_other_2.png", CCRectMake(0, 0, 73, 61)), "enemy_other_2.png");
	CCSpriteFrameCache::sharedSpriteFrameCache()->addSpriteFrame(CCSpriteFrame::create("enemy19_1.png", CCRectMake(0, 0, 16, 31)), "enemy19_1.png");

	
	
	//CCSpriteFrameCache::sharedSpriteFrameCache()->addSpriteFrame(CCSpriteFrame::create("bg1.png", CCRectMake(0, 0, 640, 960)), "bg1.png");
	//CCSpriteFrameCache::sharedSpriteFrameCache()->addSpriteFrame(CCSpriteFrame::create("bg1.png", CCRectMake(0, 0, 640, 960)), "bg1.png");
	//CCSpriteFrameCache::sharedSpriteFrameCache()->addSpriteFrame(CCSpriteFrame::create("bg1.png", CCRectMake(0, 0, 640, 960)), "bg1.png");
	//CCSpriteFrameCache::sharedSpriteFrameCache()->addSpriteFrame(CCSpriteFrame::create("bg1.png", CCRectMake(0, 0, 640, 960)), "bg1.png");

	return true;
}
